package ink.feta.task.job;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.dataflow.job.DataflowJob;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class SpringBootDataflowJob implements DataflowJob {

    @Override
    public List fetchData(final ShardingContext shardingContext) {
        // 获取数据
        return new ArrayList();
    }

    @Override
    public void processData(final ShardingContext shardingContext, final List data) {
        // 处理数据
    }
}
